{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends base_template %}

{% block title %}{% trans 'title_dashboard' from 'AdminBundle' %}{% endblock%}
{% block breadcrumb %}{% trans 'title_dashboard' from 'AdminBundle' %}{% endblock %}
{% block content %}

    {% for code, group in groups %}
        <table class="sonata-ba-list">
            <thead>
                <tr>
                    <th  colspan="3">{% trans code from 'AdminBundle' %}</td>
                </tr>
            </thead>

            <tbody>
                {% for admin in group %}
                    <tr>
                        <td class="sonata-ba-list-label">{% trans admin.label from admin.translationdomain  %}</td>
                        <td><a href="{{ admin.generateUrl('create')}}"><img src="{{ asset('bundles/sonataadmin/famfamfam/add.png') }}" /> {% trans 'link_add' from 'AdminBundle' %}</a></td>
                        <td><a href="{{ admin.generateUrl('list')}}"><img src="{{ asset('bundles/sonataadmin/famfamfam/application_view_list.png') }}" />{% trans 'link_list' from 'AdminBundle' %}</a></td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% endfor %}

{% endblock %}